-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add team_themes
table
#2602
Conversation
🤖 Hasura Change Summary compared a subset of table metadata including permissions: Tracked Tables (1)
Updated Tables (1)
|
ef797ae
to
76d294a
Compare
Removed vultr server and associated DNS entries |
8847978
to
6bfa867
Compare
FROM | ||
teams; | ||
|
||
ALTER TABLE "public"."teams" DROP COLUMN "theme" CASCADE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migrating and then dropping the column will work on staging and prod, but on the initial migration on Pizza and locally it won't do anything as the data sync happens after Hasura migrations run.
I tested this locally without dropping the column. If preferred, I can split this into two steps / two PRs.
@@ -3,6 +3,7 @@ CREATE TEMPORARY TABLE sync_teams ( | |||
id integer, | |||
name text, | |||
slug text, | |||
-- TODO: Drop this and fetch from team_themes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO intentionally left here, we'll need to update sync scripts only once this new table is in prod.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @DafyddLlyr
I think this might be related but I was having issues building main
since coming back from the holidays.
I was seeing:
psql:write/teams.sql:18: ERROR: invalid input syntax for type json
DETAIL: Expected end of input, but found "-11".
Which was resolved by commenting out theme jsonb,
"id" serial NOT NULL, | ||
"team_id" integer NOT NULL, | ||
"primary_colour" text NOT NULL DEFAULT '#0010A4', | ||
"secondary_colour" text, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check with @ianjon3s in the new year how we should handle defaults for this column.
6bfa867
to
fc3aa02
Compare
This updates `planx-core` types to match new table added in theopensystemslab/planx-new#2602 Implemented in theopensystemslab/planx-new#2628
What does this PR do?
team.theme
JSONB to a newteam_themes
tableRelies on theopensystemslab/planx-core#242